package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllCommon(common map[string]interface{}) (error, []models.Common, int64) {
	err, commonData, total := dao.GetAllCommon(common)
	return err, commonData, total
}

// func DelFamily(id string) error {
// 	err := dao.DelFamily(id)
// 	return err
// }

// func UpdateFamily(family models.Family) error {
// 	err := dao.UpdateFamily(family)
// 	return err
// }

func AddCommon(common models.Common) error {
	err := dao.AddCommon(common)
	return err
}
